<?php $user = User::model()->findByPk($data->distributor_id); ?>
<div class="distributor-detail">
    <div class="img">
        <?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl.User::S_THUMBNAIL.$user->avatar,CHtml::encode($user->full_name)),array('view', 'id'=>$user->id)); ?>
    </div>
    <div class="desc">
        <p class="distributor-name"><a href="">
        <?php echo $user->full_name; ?></a>
            dai ly cua 
        <a href=""><?php echo User::model()->findByPk($data->supplier_id)->full_name; ?></a></p>
        
        <p><?php echo $user->address.' - '.Yii::app()->getModule('user')->provinceArr[$user->province]; ?></p>
        <span class="items-de amount radius-5px">Số lượng  : <b><?php echo $data->amount ?></b> (<?php echo $data->unit ?>)</span>
               
            <span class="items-de price-unit radius-5px">Đơn giá : <b><?php echo $data->unit_price ?></b> <?php echo '/ 1 '.$data->unit;?></span>
    </div>
    <div class="amount-price">
            
        </div>
</div>
